package org.example.DesignPatterns.Observer;

/**
 * @description:
 * @author: farprt
 * @create: 2022-09-25 13:32
 **/
public class HandChopper extends Buyer {

    public HandChopper(String name) {
        super(name);
    }

    @Override
    public void inform(String product) {
        System.out.print(name);
        System.out.println("购买"+product);
    }
}